<!-- {{}} 是angular的值绑定语法，负责把组件的title属性绑定到html中 -->
<h1>{{title}}</h1>
<!-- <app-heroes></app-heroes> -->
<!-- <app-messages></app-messages> -->

<nav>
    <a routerLink="/dashboard">dashboard</a>
    <a routerLink="/heroes">Heroes</a>
</nav>
<router-outlet></router-outlet>


<!-- 
ng generate component xxx 创建组件
ng generate service xxx 创建服务
 -->